package com.lemi.common.exception;

/**
 * @author kevin
 * @since 2020/7/3 2:32 PM
 */
public class BaseException extends RuntimeException {

    private static final long serialVersionUID = -9191765277576504662L;
    private String code = "500";
    private String msg;

    public BaseException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public BaseException(String code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public BaseException(String code, String msg, Throwable e) {
        super(msg, e);
        this.code = code;
        this.msg = msg;
    }
}
